# -*- coding: utf-8 -*-
# @time     : 2022/2/18 0018 15:00
# @Author   : mingy
# @File     : whois_check.py
# @Software : PyCharm

# pip install python-whois

import whois

domain = input("输入查询 Whois 的域名：")
data = whois.whois(domain)
print(f"域名：{data['domain_name']}")
print(f"邮箱：{data['emails']}")
print(f"注册人：{data['org']}")
print(f"注册时间：{data['creation_date']}")
print(f"更新时间：{data['updated_date']}")
